﻿using Core;
using Core.Domain.Common;
using System.Collections;
using System.Collections.Generic;

namespace Services.Common
{
    /// <summary>
    /// 规模服务接口
    /// </summary>
    public partial interface IScaleService
    {
        /// <summary>
        /// 删除规模
        /// </summary>
        /// <param name="entity"></param>
        void DeleteScale(Scale entity);

        /// <summary>
        /// 新增规模
        /// </summary>
        /// <param name="entity"></param>
        void InsertScale(Scale entity);

        /// <summary>
        /// 更新规模
        /// </summary>
        /// <param name="entity"></param>
        void UpdateScale(Scale entity);

        /// <summary>
        /// 根据主键获取规模
        /// </summary>
        /// <param name="Scale"></param>
        /// <returns></returns>
        Scale GetScaleById(int scaleId);

        /// <summary>
        /// 获取所有规模
        /// </summary>
        /// <param name="active"></param>
        /// <returns></returns>
        IList<Scale> GetAllScales(bool? active = true);

        /// <summary>
        /// 获取所有规模（分页)
        /// </summary>
        /// <param name="name"></param>
        /// <param name="active"></param>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <returns></returns>
        IPagedList<Scale> GetAllScales(string name = "", bool? active = true, int pageIndex = 0, int pageSize = int.MaxValue);
    }
}
